<!doctype html>

<html>
<head>
  <link rel="shortcut icon" href="static/images/favicon.ico" type="image/x-icon">
  <title>richinputhandler.js (Closure Library API Documentation - JavaScript)</title>
  <link rel="stylesheet" href="static/css/base.css">
  <link rel="stylesheet" href="static/css/doc.css">
  <link rel="stylesheet" href="static/css/sidetree.css">
  <link rel="stylesheet" href="static/css/prettify.css">

  <script>
     var _staticFilePath = "static/";
  </script>

  <script src="static/js/doc.js">
  </script>

  <meta charset="utf8">
</head>

<body onload="prettyPrint()">

<div id="header">
  <div class="g-section g-tpl-50-50 g-split">
    <div class="g-unit g-first">
      <a id="logo" href="index.html">Closure Library API Documentation</a>
    </div>

    <div class="g-unit">
      <div class="g-c">
        <strong>Go to class or file:</strong>
        <input type="text" id="ac">
      </div>
    </div>
  </div>
</div>

<div class="clear"></div>

<h2><a href="closure_goog_ui_autocomplete_richinputhandler.js.html">richinputhandler.js</a></h2>

<pre class="prettyprint lang-js">
<a name="line1"></a>// Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);
<a name="line2"></a>// you may not use this file except in compliance with the License.
<a name="line3"></a>// You may obtain a copy of the License at
<a name="line4"></a>//
<a name="line5"></a>//     http://www.apache.org/licenses/LICENSE-2.0
<a name="line6"></a>//
<a name="line7"></a>// Unless required by applicable law or agreed to in writing, software
<a name="line8"></a>// distributed under the License is distributed on an &quot;AS IS&quot; BASIS,
<a name="line9"></a>// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
<a name="line10"></a>// See the License for the specific language governing permissions and
<a name="line11"></a>// limitations under the License.
<a name="line12"></a>
<a name="line13"></a>// Copyright 2007 Google Inc. All Rights Reserved.
<a name="line14"></a>
<a name="line15"></a>/**
<a name="line16"></a> * @fileoverview Class for managing the interactions between a rich autocomplete
<a name="line17"></a> * object and a text-input or textarea.
<a name="line18"></a> *
<a name="line19"></a> */
<a name="line20"></a>
<a name="line21"></a>goog.provide(&#39;goog.ui.AutoComplete.RichInputHandler&#39;);
<a name="line22"></a>
<a name="line23"></a>goog.require(&#39;goog.ui.AutoComplete&#39;);
<a name="line24"></a>goog.require(&#39;goog.ui.AutoComplete.InputHandler&#39;);
<a name="line25"></a>
<a name="line26"></a>
<a name="line27"></a>
<a name="line28"></a>/**
<a name="line29"></a> * Class for managing the interaction between an autocomplete object and a
<a name="line30"></a> * text-input or textarea.
<a name="line31"></a> * @param {?string} opt_separators Seperators to split multiple entries.
<a name="line32"></a> * @param {?string} opt_literals Characters used to delimit text literals.
<a name="line33"></a> * @param {?boolean} opt_multi Whether to allow multiple entries
<a name="line34"></a> *     (Default: true).
<a name="line35"></a> * @param {?number} opt_throttleTime Number of milliseconds to throttle
<a name="line36"></a> *     keyevents with (Default: 150).
<a name="line37"></a> * @constructor
<a name="line38"></a> * @extends {goog.ui.AutoComplete.InputHandler}
<a name="line39"></a> */
<a name="line40"></a>goog.ui.AutoComplete.RichInputHandler = function(opt_separators, opt_literals,
<a name="line41"></a>    opt_multi, opt_throttleTime) {
<a name="line42"></a>  goog.ui.AutoComplete.InputHandler.call(this, opt_separators, opt_literals,
<a name="line43"></a>      opt_multi, opt_throttleTime);
<a name="line44"></a>};
<a name="line45"></a>goog.inherits(goog.ui.AutoComplete.RichInputHandler,
<a name="line46"></a>              goog.ui.AutoComplete.InputHandler);
<a name="line47"></a>
<a name="line48"></a>
<a name="line49"></a>/**
<a name="line50"></a> * Selects the given rich row.  The row&#39;s select(target) method is called.
<a name="line51"></a> * @param {Object} row The row to select.
<a name="line52"></a> * @return {boolean} Whether to suppress the update event.
<a name="line53"></a> */
<a name="line54"></a>goog.ui.AutoComplete.RichInputHandler.prototype.selectRow = function(row) {
<a name="line55"></a>  var suppressUpdate = goog.ui.AutoComplete.RichInputHandler.superClass_
<a name="line56"></a>      .selectRow.call(this, row);
<a name="line57"></a>  row.select(this.ac_.getTarget());
<a name="line58"></a>  return suppressUpdate;
<a name="line59"></a>};
</pre>


</body>
</html>
